package xyz.xtt.equity.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.AssertTrue;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author dale
 * @since 2024/12/31
 **/
@Schema(name = "创建靓号订单对象", description = "创建靓号订单对象")
@Data
public class TlbLuckPhoneOrderReq {

    @Schema(description = "权益id")
    @NotNull(message = "权益id不能为空")
    @NotBlank(message = "权益id不能为空")
    private String entitlementId;
    @Schema(description = "收件人电话")
    @NotNull(message = "收件人电话不能为空")
    @NotBlank(message = "收件人电话不能为空")
    private String receiverPhone;
    @Schema(description = "靓号-号码")
    @NotNull(message = "请先选择一个电话号码")
    @NotBlank(message = "请先选择一个电话号码")
    private String luckPhone;
    @Schema(description = "是否同意协议")
    @AssertTrue(message = "请先阅读并同意服务政策和隐私政策")
    private boolean isAgreementAccepted;
}
